<template>
    <div class="app-container">
        <!-- 顶部 Header 区域 -->
        <mt-header fixed title="南湖466商城" class="header"></mt-header>
        




        <!-- 中间的 路由 router-view 区域 -->
        <transition mode="out-in">
            <router-view></router-view>
        </transition>




        <!-- 底部 Tabbar 区域 -->
        <nav class="footer">
            <router-link class="footer-icon" to="/home">
                <i class="fas fa-home"></i>
            </router-link>
            <router-link class="footer-icon" to="/member">
                <i class="fas fa-user-circle"></i>
            </router-link>
            <router-link class="footer-icon" to="/shopcar">
                <i class="fas fa-cart-plus"></i>
            </router-link>
            <router-link class="footer-icon" to="/search">
                <i class="fab fa-sistrix"></i>
            </router-link>
        </nav>
        
    </div>
</template>

<script>
export default {

}
</script>

<style>
    /* 这里设置的是 全局样式 */
    .app-container{
        padding-top: 100px;
        overflow-x: hidden;
    }
    .header,.mint-header{
        position: fixed;
        height: 100px;
        font-size: 50px;
        text-align: center;
    }
    .footer{
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 100px;
        display: flex;
        background-color: #fff;
    }
    .footer .footer-icon{
        box-sizing: border-box;
        display: block;
        float: left;
        flex: 1;
        height: 100px;
        padding: 10px auto;
        font-size: 80px;
        font-weight: 400;
        color: #26a2ff;
        text-align: center;
    }
    .footer .footer-icon i::before{
        display: block;
        padding: 20px 0;
        width: 80px;
        height: 80px;
        font-size: 60px;
        color: #b0b0b0;
    }

    /* 组件切换的动画 */
    .v-enter{
        opacity: 0;
        transform: translateX(100%);
    }
    .v-leave-to{
        opacity: 0;
        transform: translateX(-100%);
        position: absolute;
    }
    .v-enter-active,.v-leave-active{
        transition: all 0.2s ease;
    }
    
</style>

